﻿<UserControl x:Class="MsiCustomize.AdditionalFiles"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:MsiCustomize"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="500">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20*" />
            <ColumnDefinition Width="80*" />
        </Grid.ColumnDefinitions>
        <TreeView Margin="0,0,3,0" Padding="1" IsTextSearchEnabled="True">
            <TreeView.ItemContainerStyle>
                <Style TargetType="{x:Type TreeViewItem}">
                    <Setter Property="Foreground" Value="Gray"/>
                </Style>
            </TreeView.ItemContainerStyle>
            <!-- 
                TODO:  Rebuild File and Registry areas using RootItem, FolderItem, etc.
                Need to rebuild using a RootItem that starts with INSTALLDIR
                The below standard folders should be folder items under INSTALLDIR
                We need to use a MsiFolderItem that inherits from FolderItem and 
                also contains
                    DirectoryKey // perhaps return (Path+"_"+Name).Replace("\\","_");
                    DirectoryParentKey // perhaps convert \\ to _ as in return Path.Replace("\\","_");
                    DirectoryName // get return Name
            -->
            <TreeViewItem Header="AdminToolsFolder" ToolTip="The full path to the directory that contains administrative tools."  />
            <TreeViewItem Header="AppDataFolder" ToolTip="The full path to the Roaming folder for the current user." />
            <TreeViewItem Header="CommonAppDataFolder" ToolTip="The full path to application data for all users." />
            <TreeViewItem Header="CommonFiles64Folder" ToolTip="The full path to the predefined 64-bit Common Files folder." />
            <TreeViewItem Header="CommonFilesFolder" ToolTip="The full path to the Common Files folder for the current user." />
            <TreeViewItem Header="DesktopFolder" ToolTip="The full path to the Desktop folder." />
            <TreeViewItem Header="FavoritesFolder" ToolTip="The full path to the Favorites folder for the current user." />
            <TreeViewItem Header="FontsFolder" ToolTip="The full path to the Fonts folder." />
            <TreeViewItem Header="LocalAppDataFolder" ToolTip="The full path to the folder that contains local (nonroaming) applications." />
            <TreeViewItem Header="MyPicturesFolder" ToolTip="The full path to the Pictures folder." />
            <TreeViewItem Header="NetHoodFolder" ToolTip="The full path to the NetHood folder." />
            <TreeViewItem Header="PersonalFolder" ToolTip="The full path to the Documents folder for the current user." />
            <TreeViewItem Header="PrintHoodFolder" ToolTip="The full path to the PrintHood folder." />
            <TreeViewItem Header="ProgramFiles64Folder" ToolTip="The full path to the predefined 64-bit Program Files folder." />
            <TreeViewItem Header="ProgramFilesFolder" ToolTip="The full path to the predefined 32-bit Program Files folder." />
            <TreeViewItem Header="ProgramMenuFolder" ToolTip="The full path to the Program Menu folder." />
            <TreeViewItem Header="RecentFolder" ToolTip="The full path to the Recent folder." />
            <TreeViewItem Header="SendToFolder" ToolTip="The full path to the SendTo folder for the current user." />
            <TreeViewItem Header="StartMenuFolder" ToolTip="The full path to the Start menu folder." />
            <TreeViewItem Header="StartupFolder" ToolTip="The full path to the Startup folder." />
            <TreeViewItem Header="System16Folder" ToolTip="The full path to folder for 16-bit system DLLs." />
            <TreeViewItem Header="System64Folder" ToolTip="The full path to the predefined System64 folder." />
            <TreeViewItem Header="SystemFolder" ToolTip="The full path to the System folder for the current user." />
            <TreeViewItem Header="TempFolder" ToolTip="The full path to the Temp folder." />
            <TreeViewItem Header="TemplateFolder" ToolTip="The full path to the Template folder for the current user." />
            <TreeViewItem Header="WindowsFolder" ToolTip="The full path to the Windows folder." />
            <TreeViewItem Header="WindowsVolume" ToolTip="The volume of the Windows folder." />
        </TreeView>
        <GridSplitter HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="3" />
    </Grid>
</UserControl>
